package com.dd.dus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.dc.entity.users.DPermission;

import java.util.List;

/**
 * <p>
 * 权限/菜单信息表 服务类
 * </p>
 *
 * @author JueDream
 * @since 2021-03-12
 */
public interface IDPermissionService extends IService<DPermission> {

    List<DPermission> findPermissionByUserId(Integer userId);

    List<DPermission> findPermissionByRoleId(List<Integer> roleIds);

    Page<DPermission> queryRoleList(int page, int limit, String permissionName);

    Integer insert(DPermission permission);
}
